package libs;

import play.mvc.Controller;

public class Validation {
	public static boolean isGet() {
		return Constants.GET.equals(Controller.request().method());
	}

	public static boolean isPost() {
		return Constants.POST.equals(Controller.request().method());
	}
	
	public static boolean isEmpty(String str){
		return str == null || "".equals(str);
	}
}
